package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.xnx3.j2ee.entity.BaseEntity;

/**
 * 网格接单时间和站点休息表
 * @author 王晓龙
 */
@Entity()
@Table(name = "laji_wangge_settime")
public class WanggeSettime extends BaseEntity implements java.io.Serializable  {
	private Integer id;	//自增id
	private String dailishangUsername;	//所属代理商名称,关联user.nickname
	private Integer dailishangId;	//所属代理商用户id,关联user.id
	private Integer wanggeId;	//所属网格用户id,关联user.id
	private String wanggeUsername;	//所属网格名称,关联user.nickname
	private Integer startTime;	//网格营业开始时间,十位时间戳
	private Integer endTime;	//网格营业结束时间,十位时间戳
	private String restTime;	//站点休息时间,例如 星期日, 多个以英文,隔开
	private Integer newYearStartRestTime;	//新年假期开始时间,十位数时间戳
	private Integer newYearEndRestTime;	//新年假期结束时间,十位数时间戳
	private String newYearTip;	//新年假期提示语
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "dailishang_username", columnDefinition="char(60) COLLATE utf8mb4_unicode_ci COMMENT '所属代理商名称,关联user.nickname' default ''")
	public String getDailishangUsername() {
		return dailishangUsername;
	}
	public void setDailishangUsername(String dailishangUsername) {
		this.dailishangUsername = dailishangUsername;
	}
	@Column(name = "dailishang_id", columnDefinition="int(11) COMMENT '所属代理商用户id,关联user.id' default '0'")
	public Integer getDailishangId() {
		return dailishangId;
	}
	public void setDailishangId(Integer dailishangId) {
		this.dailishangId = dailishangId;
	}
	@Column(name = "wangge_id", columnDefinition="int(11) COMMENT '所属网格用户id,关联user.id' default '0'")
	public Integer getWanggeId() {
		return wanggeId;
	}
	public void setWanggeId(Integer wanggeId) {
		this.wanggeId = wanggeId;
	}
	@Column(name = "wangge_username", columnDefinition="char(60) COLLATE utf8mb4_unicode_ci COMMENT '所属网格名称,关联user.nickname' default ''")
	public String getWanggeUsername() {
		return wanggeUsername;
	}
	public void setWanggeUsername(String wanggeUsername) {
		this.wanggeUsername = wanggeUsername;
	}
	@Column(name = "start_time", columnDefinition="int(11) COMMENT '网格营业开始时间,十位时间戳' default '0'")
	public Integer getStartTime() {
		return startTime;
	}
	public void setStartTime(Integer startTime) {
		this.startTime = startTime;
	}
	@Column(name = "end_time", columnDefinition="int(11) COMMENT '网格营业结束时间,十位时间戳' default '0'")
	public Integer getEndTime() {
		return endTime;
	}
	public void setEndTime(Integer endTime) {
		this.endTime = endTime;
	}
	@Column(name = "rest_time", columnDefinition="char(10) COLLATE utf8mb4_unicode_ci COMMENT '站点休息时间,例如 星期日, 多个以英文,隔开' default ''")
	public String getRestTime() {
		return restTime;
	}
	public void setRestTime(String restTime) {
		this.restTime = restTime;
	}
	@Column(name = "new_year_start_rest_time", columnDefinition="int(11) COMMENT '新年假期开始时间,十位数时间戳' default '0'")
	public Integer getNewYearStartRestTime() {
		return newYearStartRestTime;
	}
	public void setNewYearStartRestTime(Integer newYearStartRestTime) {
		this.newYearStartRestTime = newYearStartRestTime;
	}
	@Column(name = "new_year_end_rest_time", columnDefinition="int(11) COMMENT '新年假期结束时间,十位数时间戳' default '0'")
	public Integer getNewYearEndRestTime() {
		return newYearEndRestTime;
	}
	public void setNewYearEndRestTime(Integer newYearEndRestTime) {
		this.newYearEndRestTime = newYearEndRestTime;
	}
	@Column(name = "new_year_tip", columnDefinition="char(255) COLLATE utf8mb4_unicode_ci COMMENT '新年假期提示语' default ''")
	public String getNewYearTip() {
		return newYearTip;
	}
	public void setNewYearTip(String newYearTip) {
		this.newYearTip = newYearTip;
	}
	@Override
	public String toString() {
		return "WanggeSettime [id=" + id + ", dailishangUsername=" + dailishangUsername + ", dailishangId="
				+ dailishangId + ", wanggeId=" + wanggeId + ", wanggeUsername=" + wanggeUsername + ", startTime="
				+ startTime + ", endTime=" + endTime + ", restTime=" + restTime + ", newYearStartRestTime="
				+ newYearStartRestTime + ", newYearEndRestTime=" + newYearEndRestTime + ", newYearTip=" + newYearTip
				+ "]";
	}
	
}
